import request from '@/utils/request'

// 查询订单司机信息列表
export function listDistribution(query) {
  return request({
    url: '/vehicle/distribution/list',
    method: 'get',
    params: query
  })
}

// 查询订单司机信息详细
export function getDistribution(informationId) {
  return request({
    url: '/vehicle/distribution/' + informationId,
    method: 'get'
  })
}

// 新增订单司机信息
export function addDistribution(data) {
  return request({
    url: '/vehicle/distribution',
    method: 'post',
    data: data
  })
}

// 修改订单司机信息
export function updateDistribution(data) {
  return request({
    url: '/vehicle/distribution',
    method: 'put',
    data: data
  })
}

// 删除订单司机信息
export function delDistribution(informationId) {
  return request({
    url: '/vehicle/distribution/' + informationId,
    method: 'delete'
  })
}
